package ZuoYe01_LeiyuDuiXiang_0428;

//电脑有品牌，价格，颜色，屏幕大小等属性，定义并测试电脑对象，并输出
public class DianNao {

	String pinPai;
	double jiaGe;
	String yanSe;
	String pinMu;

	public void show() {
		System.out.println("该电脑的品牌是：" + pinPai + "，价格是：" + jiaGe + "，颜色是：" + yanSe + "，屏幕大小是：" + pinMu);
	}

	public static void main(String[] args) {
		DianNao computer = new DianNao();
		computer.pinPai = "MacBook Air";
		computer.jiaGe = 3999;
		computer.yanSe = "星空灰";
		computer.pinMu = "11寸";
		computer.show();

	}

}
